<?php

class Core_Backend_Component_Global_View_Component_Install extends Core_Backend_Share_View_Form {

    public function initialize() {
        $this->setTemplatePath('edit');
    }

    protected function buildNavigation($navigation) {
        $navigation->addLabel($this->__f('global.title.install', '{share.label.component}'));
        parent::buildNavigation($navigation);
    }

    protected function buildToolbar($toolbar) {
       $group = $toolbar->createGroup('back');
        $group->addLink($this->getHistoryUrl('global/template/index'), $this->__('share.button.back'));
        parent::buildToolbar($toolbar);
    }

    protected function buildForm($form) {
        $form->setAction($this->getUrl())
                ->setEnctype('multipart/form-data')
                ->setId('setup_form')
                ->addFileField($this->__('global.label.upload'), 'setup', true);
        parent::buildForm($form);
    }

}